package com.ly.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;


@RestController
@RequestMapping
public class HelloController {

    @Autowired
    private DataSource dataSource;

    @RequestMapping("hello")
    public String hello() {
        return "Hello，这是我第一个springBoot工程！！！";
    }

    @RequestMapping("hello2")
    public String hello2() {
        return "Hello，这是我dataSource属性！！！"+dataSource;
    }
}
